let obj1 = {
  name: "zhangsan",
};

let obj2 = {
  name: "lisi",
  age: 18,
};

let obj = Object.assign({}, obj1, obj2, { gender: "男" });
console.log(obj);
